<{include file="block/header.html"}>
<!--面包屑导航开始-->
<div class="main_topnav mb20">
	<div class="mainwd">
		<p><span class="ico_list breadna"></span>您的位置：<a href="<{link ctl='index'}>"><{$CONFIG.site.title}></a>
			><a href="<{link ctl='gs:index'}>">找装修公司</a>><a href="<{link ctl='youhui:items'}>">优惠信息</a>
		</p>
	</div>
</div>
<div class="mainwd">
	<div class="main_content lt">
		<div class="mb20">
			<h2>优惠信息</h2>
			<ul class="line_type main_youhui">
            	<{foreach from=$items item=item}>                	
                <li<{if $item@index%3 == 0}> class="first"<{/if}>>
                    <{if $item.ltime>time() && $item.stime<time()}>
                    <span class="ico_list be_paint"></span>
                    <{else}>
                    <span class="ico_list over_paint"></span>
                    <{/if}>
                    <a href="<{link ctl='youhui:detail' arg0=$item.youhui_id}>"  target="_blank"><img src="<{$pager.img}>/<{$item.photo}>" /></a>
                    <h3><a href="<{link ctl='youhui:detail' arg0=$item.youhui_id}>"  target="_blank"><{$item.title|cutstr:25}></a></h3>                   
                    <p class="colorbg"><span class="lt tit"><font class="youhui_time ico_list"></font><span remaintime="<{$item.ltime}>"></span></span>
                        <{if $item.ltime>time() && $item.stime<time()}>
                        <a href="<{link ctl='youhui:detail' arg0=$item.youhui_id}>" class="btn_sub_sm rt btn">立即参团</a>
                        <{else}>
                        <a href="<{link ctl='youhui:detail' arg0=$item.youhui_id}>" class="youhui_over_btn rt btn">已结束</a></p>
                        <{/if}>
                    </p>
                </li>
                <{/foreach}>                
			</ul>
			<div class="cl"></div>
			<{if $pager.pagebar}><div class="page hoverno"><{$pager.pagebar}></div><{/if}>
		</div>
	</div>
	
	<div class="side_content rt">
		<{widget id="tenders/fast" title="免费装修设计" from="TSJ"}>
        <div class="mb10 area">
			<h3 class="side_tit">装修公司排行榜</h3>
			<ul class="pding paihang">
                <{calldata mdl="company/company"  city_id=$request.city_id limit=8}>
				<li>
                    <span class="lt"><font class="paihang_num<{if $iteration<=3}> ph_num_cl<{/if}>"><{$iteration}></font><a href="<{$item.company_url}>"><{$item.name|cutstr:35}></a></span>
                    <span class="rt">已投标：<font class="fontcl2"><{$item.tenders_num}></font></span>
                </li>
                <{/calldata}>
			</ul>
		</div>
        <div class="mb10 area">
			<h3 class="side_tit">设计师排行榜</h3>
			<ul class="pding paihang">
                <{calldata mdl="designer/designer" city_id=$request.city_id limit=5}>
				<li>
                    <span class="lt"><font class="paihang_num<{if $iteration<=3}> ph_num_cl<{/if}>"><{$iteration}></font><a href="<{link ctl='blog'  arg0=$item.uid}>"><{$item.name|cutstr:35}></a></span>
                    <span class="rt">已投标：<font class="fontcl2"><{$item.tenders_num}></font></span>
                </li>
                <{/calldata}>
			</ul>
		</div>
        <div class="mb10 area">
			<h3 class="side_tit">工长排行榜</h3>
			<ul class="pding paihang">
                <{calldata mdl="gz/gz" city_id=$request.city_id limit=5}>
				<li>
                    <span class="lt"><font class="paihang_num<{if $iteration<=3}> ph_num_cl<{/if}>"><{$iteration}></font><a href="<{link ctl='gz-detail'  arg0=$item.uid}>"><{$item.name|cutstr:35}></a></span>
                    <span class="rt">已投标：<font class="fontcl2"><{$item.tenders_num}></font></span>
                </li>
                <{/calldata}>
			</ul>
		</div>
		<div class="mb20 "><{adv id="10" name="全站右侧招商图片广告" city_id=$request.city_id}></div>
	</div>
	<div class="cl"></div>
</div>
<script type="text/javascript" src="<{$pager.res}>/script/cloud-zoom.js"></script>
<script type="text/javascript" src="<{$pager.res}>/script/raty/jquery.raty.js"></script>
<script type="text/javascript">
(function(K, $){
    $(function(){
    var dateTime = new Date();
    var difference = dateTime.getTime() - <{$pager.dateline}>*1000;	
    setInterval(function(){
      $("[remaintime]").each(function(){
        var obj = $(this);
        var endTime = new Date(parseInt(obj.attr('remaintime')) * 1000);
        var nowTime = new Date();
        var nMS=endTime.getTime() - nowTime.getTime() + difference;
        var myD=Math.floor(nMS/(1000 * 60 * 60 * 24));
        var myH=Math.floor(nMS/(1000*60*60)) % 24;
        var myM=Math.floor(nMS/(1000*60)) % 60;
        var myS=Math.floor(nMS/1000) % 60;
        var myMS=Math.floor(nMS/100) % 10;
        if(myD>= 0){
			var str = myD+"天"+myH+"小时"+myM+"分"+myS+"."+myMS+"秒";
        }else{
			var str = "真遗憾您来晚了，抢购已经结束。";	
		}
		obj.html(str);
      });
    }, 100);
});
})(window.KT, window.jQuery);
</script>
<{include file="block/footer.html"}>
